public class PC {
 	CPU cpu;
 	HardDisk HD;
 		void setCPU(CPU c) {
        	cpu = c;
        	}
 		void setHardDisk(HardDisk h) {
        	HD = h;
        	}
 		void show() {
        		System.out.println(cpu.getSpeed());
        	System.out.println(HD.getAmount());
        	}
 		public String toString() {
        		String s = new String("CPU speed:");
        		s = s+Integer.toString(cpu.speed);
        		s = s+"  HardDisk amount:";
        	s = s+Integer.toString(HD.amount);
        		return s;
        }
 		static boolean equals(PC a,PC b) {
        	if((a.cpu.speed==b.cpu.speed)&&(a.HD.amount==b.HD.amount))
            		return true;
        		else
        		return false;
        	}
 		PC(){
        	}
 		PC(CPU cpu){
 		    this.cpu = cpu;
        	}
 		PC(HardDisk HD){
        	this.HD = HD;
        	}
 		PC(CPU cpu, HardDisk HD){
        	this.cpu = cpu;
        		this.HD = HD;
        }
 	}
